# (decoded with TMPL 13671) /* %filename% -- Modal one-shot dialog */ /* Created %date% %time% by AppMaker */ %If MPW% #include #include #include #include #include #include #include #include %end if% #include "ResourceDefs.h" #include "DialogAids.h" #include "%unitname%.h" #define nil 0L %ConstItems% %If MPW% #pragma segment %unitname% %end if% %ItemProcs% %MaybeFilter% /*----------*/ void Get%dlogname% (%dlogname%) %dlogname%Rec% %*%dlogname%; { DialogPtr theDialog; short itemNr; register %dlogname%Ptr info; InitCursor (); theDialog = GetNewDialog (%dlogname%ID, nil, (WindowPtr) -1L); SetPort (theDialog); info = %dlogname%; %SetItems% ShowWindow (theDialog); ModalDialog (%Filtername%, &itemNr); switch (itemNr) { %HandleItems% } /*case*/ %FinishItems% DisposDialog (theDialog); } /*Get%dlogname%*/